<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@page import="com.ubst.smartad.env.*" %>
<%@page import="com.ubst.smartad.session.*" %>
<%@page import="com.ubst.smartad.logger.Debug" %>

<%@include file="/jsp/inc/base.jsp"%>
<%
	/*
	 * type : os, db
	 */
	//시스템|사용자 구분
	String sid = "";
	//선택 된 트리노드의 시스템구분(linux, windows, db);
	String gid = "";
	//선택 된 노드의 id
	String cid = "";
	/*
	 * type : linux, windows, db
	 */
	String type = "os";
	if( request.getParameter("sid") != null ) {
		sid = request.getParameter("sid");
	}
	if( request.getParameter("gid") != null ) {
		gid = request.getParameter("gid");
		 if( "db".equals(gid) ) {
			type = gid;
		}
	}
	if( request.getParameter("cid") != null ) {
		cid = request.getParameter("cid");
	}
	StringBuilder sb = new StringBuilder();
	sb.append("/jsp/admin/account/role/role_");
	sb.append(type);
	sb.append(".jsp");
	sb.append("?").append("sid=").append(sid).append("&");
	sb.append("gid=").append(gid).append("&");
	sb.append("cid=").append(cid);
	
	response.sendRedirect( sb.toString() );
%>
